﻿
namespace Metro.Kashikoi.Service.Common.Entity
{
    /// <summary>
    /// The factory to build the instance of <c>IUnitOfWork</c>.
    /// </summary>
    public interface IUnitOfWorkFactory
    {
        /// <summary>
        /// Gets the context.
        /// </summary>
        /// <typeparam name="TService">The type of the service.</typeparam>
        /// <returns>
        /// The instance of the <c>IUnitOfWork</c>.
        /// </returns>
        IUnitOfWork GetContext<TService>() where TService : class;
    }
}
